package pro.spring.inter;

import pro.spring.model.Admin;
import java.util.List;
import org.apache.ibatis.annotations.Param;


public interface AdminMapper {
    int deleteByPrimaryKey(Integer aId);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer aId);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);
    
    //得到总条数
    Integer selectCount();
    
    //得到总条数
    Integer selectByNew();
    
    //登录查询
    Admin selectLogin(@Param("name")String name ,@Param("pass")String pass);
    
    //分页查询
    List<Admin> selectListPage(@Param("offset")Integer offset,@Param("pagesize")Integer pagesize);
    
    //通过name查询 用于视频码
    Admin selectByNameForVedio(@Param("aName")String aName);
}